package com.zerui.manager.app.scheduler.bean;

import org.springframework.context.ApplicationEvent;

public class TaskErrorEvent extends ApplicationEvent {

    private JobBean jobBean;
    private String errorMessage;

    public TaskErrorEvent(Object source, JobBean jobBean, String errorMessage) {
        super(source);
        this.jobBean = jobBean;
        this.errorMessage = errorMessage;
    }

    public JobBean getJobBean() {
        return jobBean;
    }

    public String getErrorMessage() {
        return errorMessage;
    }
}
